home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacAddict 115
/
macaddict115.cdr
/
Software
/
Graphics & Multimedia
/
DivX 6 for Mac Installer.pkg
/
Contents
/
Resources
/
preflight
< prev
Wrap
Text File
|
2005-11-17
|
1KB
|
61 lines
#!/bin/bash -x
#
# This preflight script echoes the values of the available
# arguments and environmental variables.
#
qtpath="/Library/QuickTime"
qtfiles=( \
DivX\ Fusion\ Decoder.component \
DivX\ Fusion\ Encoder.component \
DivX\ 5\ Codec \
DivX®\ 5\ Codec \
DivX‚Ñ¢\ 5\ Codec \
DivX\ 5.component \
DivX‚Ñ¢\ 5.component \
DivX®\ 5.component \
DivX\ Pro\ 5\ Codec \
DivX\ Pro‚Ñ¢\ 5\ Codec \
DivX\ Pro\ 5.component \
DivX\ Pro‚Ñ¢\ 5.component \
DivX\ Video\ 5\ Codec \
DivX®\ Video\ 5\ Codec \
DivX‚Ñ¢\ Video\ 5\ Codec \
DivX\ Video\ 5.component \
DivX®\ Video\ 5.component \
DivX‚Ñ¢\ Video\ 5.component \
DivX.component \
DivX®\.component \
DivX‚Ñ¢\.component \
DivX\ Pro.component \
DivX\ Pro®\.component \
DivX\ Pro‚Ñ¢\.component \
DivX\ Nardo\ Codec \
DivX\ MP3\ Encoder \
DivX®\ MP3\ Encoder \
DivX‚Ñ¢\ MP3\ Encoder \
DivX\ MP3\ Encoder.component \
DivX®\ MP3\ Encoder.component \
DivX‚Ñ¢\ MP3\ Encoder.component \
AVI\ MovieImport \
AVI\ MovieImport.component \
DivX\ 6\ Decoder.component \
DivX\ 6\ Encoder.component \
)
appsupportpath="/Library/Application Support/DivXNetworks/"
echo "Removing previous versions of DivX components"
for ((index=0; index < ${#qtfiles[*]}; index++))
do
file="$qtpath/${qtfiles[index]}"
rm -rf "$file"
done
echo "Removing previous versions of DivX support files"
rm -rf "$appsupportpath"
exit 0